package org.blog.service;

import org.blog.entity.Message;
import org.blog.entity.param.MessageParam;

import java.util.List;

/**
 * 留言
 */
public interface MessageService {

    int deleteByPrimaryKey(Integer messageId);

    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer messageId);

    int updateByPrimaryKeySelective(Message record);

    int updateByPrimaryKey(Message record);


    List<Message> getMessages(MessageParam param);

    boolean delete(Integer messageId);
}
